package com.xiaoyudeguang.annotations;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;

import java.lang.annotation.*;

/**
 * @author 赵光
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@RequestMapping
@org.springframework.web.bind.annotation.RestController
public @interface RestController {

    /**
     * 路径
     *
     * @return
     */
    @AliasFor(annotation = RequestMapping.class)
    String value();

    /**
     * 是否需要权限校验
     *
     * @return
     */
    String permission() default "";

    /**
     * 标签
     *
     * @return
     */
    String[] tags();

    /**
     * 作者
     *
     * @return
     */
    String author();
}
